<template>

  <div>
    <el-row class="tac">
      <el-col :span="24">
        <!--侧边栏 :router="true" 让导航配合路由-->
        <el-menu
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          :router="true"
        >
          <!--  第一个 分组 -->
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-menu"></i>
              <span>导航1</span>
            </template>
            <el-menu-item-group>

              <el-menu-item index="/home/test01"><span class="el-icon-office-building"></span>路由1-1</el-menu-item>
              <el-menu-item index="/home/test02"><span class="el-icon-house"></span>通知报告</el-menu-item>
              <el-menu-item index="/home/test03"><span class="el-icon-house"></span>路由1-3</el-menu-item>
              <el-menu-item index="/home/test04"><span class="el-icon-house"></span>路由1-4</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-col>
    </el-row>
  </div>

</template>
<script>
  export default {
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>
<style scoped>

</style>
